package bccsp

/**
ECDSAP256 的秘钥产生定义
@author:lwj
@date:2022.2.22
*/
// ECDSAP256 秘钥产生做法
type ECDSAP256KeyGenOpts struct {
	Temporary bool
}

// ECDSAP256 秘钥产生
func (opts *ECDSAP256KeyGenOpts) Algorithm() string {
	return ECDSAP256
}

// 是否是暂时的
func (opts *ECDSAP256KeyGenOpts) Ephemeral() bool {
	return opts.Temporary
}

// ECDSAP384
type ECDSAP384KeyGenOpts struct {
	Temporary bool
}

// ECDSAP384
func (opts *ECDSAP384KeyGenOpts) Algorithm() string {
	return ECDSAP384
}

// ECDSAP384
func (opts *ECDSAP384KeyGenOpts) Ephemeral() bool {
	return opts.Temporary
}
